import Svg,{
  Circle,
  Ellipse,
  G,
  Text,
  TSpan,
  TextPath,
  Path,
  Polygon,
  Polyline,
  Line,
  Rect,
  Use,
  Image,
  Symbol,
  Defs,
  LinearGradient,
  RadialGradient,
  Stop,
  ClipPath,
  Pattern,
  Mask,
} from 'react-native-svg';

/* Use this if you are using Expo
import { Svg } from 'expo';
const { Circle, Rect } = Svg;
*/

import React from 'react';
import { View, StyleSheet, Dimensions } from 'react-native';

// Percentages work in plain react-native but aren't supported in Expo yet, workaround with this or onLayout
const { width, height } = Dimensions.get('window');

export default class SvgExample7 extends React.Component {


  render() {
    return (
      <View style={{...StyleSheet.absoluteFill,alignItems: 'center', justifyContent: 'center' }}>
        <Svg
          height="80"
          width="300"
        >
          <Text
            textLength="2"
            lengthAdjust={"spacingAndGlyphs"}
            fill="none"
            stroke="purple"
            fontSize="20"
            fontWeight="bold"
            x="100"
            dx='5 10 20'
            y="30"
            dy="1 5 6 9 1 9"
            textAnchor="middle"
            rotate={'10'}
          >STROKED TEXT</Text>
        </Svg>
      </View>
    );
  }
}